package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * TestInfoId entity. @author MyEclipse Persistence Tools
 */

public class TestInfoId implements java.io.Serializable {

	// Fields

	private Integer testid;
	private String testname;
	private Integer stCourseId;
	private Double summark;
	private Double singleMark;
	private Double singleCount;
	private Double singleSum;
	private Double mulMark;
	private Double mulCount;
	private Double mulSum;
	private Double rwmark;
	private Double rwcount;
	private Double rwsum;
	private Double qmark;
	private Double qcount;
	private Double qsum;
	private Timestamp creattime;
	private Integer isDeleted;

	// Constructors

	/** default constructor */
	public TestInfoId() {
	}

	/** minimal constructor */
	public TestInfoId(Integer testid, String testname, Integer stCourseId,
			Double summark, Double singleMark, Double singleCount,
			Double singleSum, Double mulMark, Double mulCount, Double mulSum,
			Double rwmark, Double rwcount, Double rwsum, Double qmark,
			Double qcount, Double qsum, Timestamp creattime) {
		this.testid = testid;
		this.testname = testname;
		this.stCourseId = stCourseId;
		this.summark = summark;
		this.singleMark = singleMark;
		this.singleCount = singleCount;
		this.singleSum = singleSum;
		this.mulMark = mulMark;
		this.mulCount = mulCount;
		this.mulSum = mulSum;
		this.rwmark = rwmark;
		this.rwcount = rwcount;
		this.rwsum = rwsum;
		this.qmark = qmark;
		this.qcount = qcount;
		this.qsum = qsum;
		this.creattime = creattime;
	}

	/** full constructor */
	public TestInfoId(Integer testid, String testname, Integer stCourseId,
			Double summark, Double singleMark, Double singleCount,
			Double singleSum, Double mulMark, Double mulCount, Double mulSum,
			Double rwmark, Double rwcount, Double rwsum, Double qmark,
			Double qcount, Double qsum, Timestamp creattime, Integer isDeleted) {
		this.testid = testid;
		this.testname = testname;
		this.stCourseId = stCourseId;
		this.summark = summark;
		this.singleMark = singleMark;
		this.singleCount = singleCount;
		this.singleSum = singleSum;
		this.mulMark = mulMark;
		this.mulCount = mulCount;
		this.mulSum = mulSum;
		this.rwmark = rwmark;
		this.rwcount = rwcount;
		this.rwsum = rwsum;
		this.qmark = qmark;
		this.qcount = qcount;
		this.qsum = qsum;
		this.creattime = creattime;
		this.isDeleted = isDeleted;
	}

	// Property accessors

	public Integer getTestid() {
		return this.testid;
	}

	public void setTestid(Integer testid) {
		this.testid = testid;
	}

	public String getTestname() {
		return this.testname;
	}

	public void setTestname(String testname) {
		this.testname = testname;
	}

	public Integer getStCourseId() {
		return this.stCourseId;
	}

	public void setStCourseId(Integer stCourseId) {
		this.stCourseId = stCourseId;
	}

	public Double getSummark() {
		return this.summark;
	}

	public void setSummark(Double summark) {
		this.summark = summark;
	}

	public Double getSingleMark() {
		return this.singleMark;
	}

	public void setSingleMark(Double singleMark) {
		this.singleMark = singleMark;
	}

	public Double getSingleCount() {
		return this.singleCount;
	}

	public void setSingleCount(Double singleCount) {
		this.singleCount = singleCount;
	}

	public Double getSingleSum() {
		return this.singleSum;
	}

	public void setSingleSum(Double singleSum) {
		this.singleSum = singleSum;
	}

	public Double getMulMark() {
		return this.mulMark;
	}

	public void setMulMark(Double mulMark) {
		this.mulMark = mulMark;
	}

	public Double getMulCount() {
		return this.mulCount;
	}

	public void setMulCount(Double mulCount) {
		this.mulCount = mulCount;
	}

	public Double getMulSum() {
		return this.mulSum;
	}

	public void setMulSum(Double mulSum) {
		this.mulSum = mulSum;
	}

	public Double getRwmark() {
		return this.rwmark;
	}

	public void setRwmark(Double rwmark) {
		this.rwmark = rwmark;
	}

	public Double getRwcount() {
		return this.rwcount;
	}

	public void setRwcount(Double rwcount) {
		this.rwcount = rwcount;
	}

	public Double getRwsum() {
		return this.rwsum;
	}

	public void setRwsum(Double rwsum) {
		this.rwsum = rwsum;
	}

	public Double getQmark() {
		return this.qmark;
	}

	public void setQmark(Double qmark) {
		this.qmark = qmark;
	}

	public Double getQcount() {
		return this.qcount;
	}

	public void setQcount(Double qcount) {
		this.qcount = qcount;
	}

	public Double getQsum() {
		return this.qsum;
	}

	public void setQsum(Double qsum) {
		this.qsum = qsum;
	}

	public Timestamp getCreattime() {
		return this.creattime;
	}

	public void setCreattime(Timestamp creattime) {
		this.creattime = creattime;
	}

	public Integer getIsDeleted() {
		return this.isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TestInfoId))
			return false;
		TestInfoId castOther = (TestInfoId) other;

		return ((this.getTestid() == castOther.getTestid()) || (this
				.getTestid() != null
				&& castOther.getTestid() != null && this.getTestid().equals(
				castOther.getTestid())))
				&& ((this.getTestname() == castOther.getTestname()) || (this
						.getTestname() != null
						&& castOther.getTestname() != null && this
						.getTestname().equals(castOther.getTestname())))
				&& ((this.getStCourseId() == castOther.getStCourseId()) || (this
						.getStCourseId() != null
						&& castOther.getStCourseId() != null && this
						.getStCourseId().equals(castOther.getStCourseId())))
				&& ((this.getSummark() == castOther.getSummark()) || (this
						.getSummark() != null
						&& castOther.getSummark() != null && this.getSummark()
						.equals(castOther.getSummark())))
				&& ((this.getSingleMark() == castOther.getSingleMark()) || (this
						.getSingleMark() != null
						&& castOther.getSingleMark() != null && this
						.getSingleMark().equals(castOther.getSingleMark())))
				&& ((this.getSingleCount() == castOther.getSingleCount()) || (this
						.getSingleCount() != null
						&& castOther.getSingleCount() != null && this
						.getSingleCount().equals(castOther.getSingleCount())))
				&& ((this.getSingleSum() == castOther.getSingleSum()) || (this
						.getSingleSum() != null
						&& castOther.getSingleSum() != null && this
						.getSingleSum().equals(castOther.getSingleSum())))
				&& ((this.getMulMark() == castOther.getMulMark()) || (this
						.getMulMark() != null
						&& castOther.getMulMark() != null && this.getMulMark()
						.equals(castOther.getMulMark())))
				&& ((this.getMulCount() == castOther.getMulCount()) || (this
						.getMulCount() != null
						&& castOther.getMulCount() != null && this
						.getMulCount().equals(castOther.getMulCount())))
				&& ((this.getMulSum() == castOther.getMulSum()) || (this
						.getMulSum() != null
						&& castOther.getMulSum() != null && this.getMulSum()
						.equals(castOther.getMulSum())))
				&& ((this.getRwmark() == castOther.getRwmark()) || (this
						.getRwmark() != null
						&& castOther.getRwmark() != null && this.getRwmark()
						.equals(castOther.getRwmark())))
				&& ((this.getRwcount() == castOther.getRwcount()) || (this
						.getRwcount() != null
						&& castOther.getRwcount() != null && this.getRwcount()
						.equals(castOther.getRwcount())))
				&& ((this.getRwsum() == castOther.getRwsum()) || (this
						.getRwsum() != null
						&& castOther.getRwsum() != null && this.getRwsum()
						.equals(castOther.getRwsum())))
				&& ((this.getQmark() == castOther.getQmark()) || (this
						.getQmark() != null
						&& castOther.getQmark() != null && this.getQmark()
						.equals(castOther.getQmark())))
				&& ((this.getQcount() == castOther.getQcount()) || (this
						.getQcount() != null
						&& castOther.getQcount() != null && this.getQcount()
						.equals(castOther.getQcount())))
				&& ((this.getQsum() == castOther.getQsum()) || (this.getQsum() != null
						&& castOther.getQsum() != null && this.getQsum()
						.equals(castOther.getQsum())))
				&& ((this.getCreattime() == castOther.getCreattime()) || (this
						.getCreattime() != null
						&& castOther.getCreattime() != null && this
						.getCreattime().equals(castOther.getCreattime())))
				&& ((this.getIsDeleted() == castOther.getIsDeleted()) || (this
						.getIsDeleted() != null
						&& castOther.getIsDeleted() != null && this
						.getIsDeleted().equals(castOther.getIsDeleted())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTestid() == null ? 0 : this.getTestid().hashCode());
		result = 37 * result
				+ (getTestname() == null ? 0 : this.getTestname().hashCode());
		result = 37
				* result
				+ (getStCourseId() == null ? 0 : this.getStCourseId()
						.hashCode());
		result = 37 * result
				+ (getSummark() == null ? 0 : this.getSummark().hashCode());
		result = 37
				* result
				+ (getSingleMark() == null ? 0 : this.getSingleMark()
						.hashCode());
		result = 37
				* result
				+ (getSingleCount() == null ? 0 : this.getSingleCount()
						.hashCode());
		result = 37 * result
				+ (getSingleSum() == null ? 0 : this.getSingleSum().hashCode());
		result = 37 * result
				+ (getMulMark() == null ? 0 : this.getMulMark().hashCode());
		result = 37 * result
				+ (getMulCount() == null ? 0 : this.getMulCount().hashCode());
		result = 37 * result
				+ (getMulSum() == null ? 0 : this.getMulSum().hashCode());
		result = 37 * result
				+ (getRwmark() == null ? 0 : this.getRwmark().hashCode());
		result = 37 * result
				+ (getRwcount() == null ? 0 : this.getRwcount().hashCode());
		result = 37 * result
				+ (getRwsum() == null ? 0 : this.getRwsum().hashCode());
		result = 37 * result
				+ (getQmark() == null ? 0 : this.getQmark().hashCode());
		result = 37 * result
				+ (getQcount() == null ? 0 : this.getQcount().hashCode());
		result = 37 * result
				+ (getQsum() == null ? 0 : this.getQsum().hashCode());
		result = 37 * result
				+ (getCreattime() == null ? 0 : this.getCreattime().hashCode());
		result = 37 * result
				+ (getIsDeleted() == null ? 0 : this.getIsDeleted().hashCode());
		return result;
	}

}